package com.ruoyi.manage.service.impl;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.manage.domain.IllegalTemplatePictures;
import com.ruoyi.manage.mapper.IllegalTemplatePicturesMapper;
import com.ruoyi.manage.service.IAppIllegalTemplatePicturesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: wwy
 * @Date: 2021/1/27 12:44
 */
@Service
public class AppIllegalTemplatePicturesServiceImpl implements IAppIllegalTemplatePicturesService {
    @Autowired
    private IllegalTemplatePicturesMapper illegalTemplatePicturesMapper;
    @Override
    public AjaxResult getTemplatePictures(int type) {
        IllegalTemplatePictures illegalTemplatePictures = illegalTemplatePicturesMapper.selectIllegalTemplatePicturesByType(type);
        return AjaxResult.success(illegalTemplatePictures);
    }
}
